/*
 * Copyright (c) 2020 hebeiyiliuba.com
 * All rights reserved.
 *
 */
package org.jeecg.modules.third.tosapi.dto;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.modules.third.tosapi.constant.enums.BizCodeEnum;

import java.io.Serializable;

/**
 * 接口返参基本参数
 *
 * @author luruirui
 * @created 2021/7/16
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class TosApiBaseResDTO implements Serializable {
    private static final long serialVersionUID = 1L;
    private String biz_code;
    private String biz_message;
    private Object data;


    public boolean isSuccess(){
        return biz_code.equals(BizCodeEnum.SUCCESS.getCode()) ? true : false;
    }
}
